When a domain is introduced to xenstored, check whether this has already
authoremellor@ewan <emellor@ewan>
Mon, 10 Oct 2005 18:04:03 +0000 (19:04 +0100)
committeremellor@ewan <emellor@ewan>
Mon, 10 Oct 2005 18:04:03 +0000 (19:04 +0100)
commitbcdb3520757e11d89d2cb16987e23fdd5a8fbe3a
tree0ba9283802be0c6d5a192a2c79a5c800007a185b
parent99bc4ba13a2cf8dd2ed4ceac43cebbdda4c07bb9
When a domain is introduced to xenstored, check whether this has already
happened, and only return EINVAL if the event channel details have changed.
This allows Xend to introduce domains when it starts without having to be
concerned about whether xenstored has restarted at the same time.  This
behaviour used to be subsumed by the bind_interdomain semantics for existing
channels, but in the simplification of that interface, the check must now move
to userspace.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/xenstore/xenstored_domain.c